# https://gitee.com/luo_zhi_cheng/TensorRT/tree/v10.9.0/tools/experimental/trt-engine-explorer/utils
# https://gitee.com/luo_zhi_cheng/tensorrt_starter/tree/dev-attention-optimization/chapter6-deploy-classification-and-inference-design/6.4-trt-engine-inspector

export PATH=/usr/src/tensorrt/bin/:$PATH

trt_exp_utils_dir=/opt/TensorRT/tools/experimental/trt-engine-explorer/utils
trt_exp_py_path=${trt_exp_utils_dir}/process_engine.py

# trt_engine_path=/sam_dev/sam_trt/temp/1/sam2.1_hiera_small_encoder_fp32.trt
trt_engine_path=/sam_dev/sam_trt/temp/1/sam2.1_hiera_small_encoder_fp16.trt

out_dir=/sam_dev/sam_trt/temp/1

python3 ${trt_exp_py_path} ${trt_engine_path} ${out_dir} --profile-engine
